Preference Logic Grammars
نویسندگان
چکیده
Preference logic grammars (PLGs) are introduced in this paper as a declarative means of resolving ambiguity in logic grammars. Preference logic grammars can be thought as extensions of deenite clause grammars (DCGs) and deenite-clause translation grammars (DCTGs). Just as DCGs and DCTGs can be directly translated into logic programs, PLGs can be translated into preference logic programs (PLPs), which we introduced in our earlier work. We discuss two applications of PLGs, optimal parsing and ambiguity resolution in programming-language and natural-language grammars. Optimal parsing is an extension of parsing wherein costs are associated with the diierent (ambiguous) parses of a string and the preferred parse is the one with least cost. Many problems can be viewed as optimal parsing problems, e.g., code generation, document layout, etc. In the area of natural language parsing, we illustrate the use of preference clauses for resolution of prepositional phrase attachment ambiguities.
منابع مشابه
Alternating Regular Tree Grammars in the Framework of Lattice-Valued Logic
In this paper, two different ways of introducing alternation for lattice-valued (referred to as {L}valued) regular tree grammars and {L}valued top-down tree automata are compared. One is the way which defines the alternating regular tree grammar, i.e., alternation is governed by the non-terminals of the grammar and the other is the way which combines state with alternation. The first way is ta...
متن کاملA Case Study in Using Preference Logic Grammars for Knowledge Representations
Data standardization is the commercially important process of extracting useful information from poorly structured textual data. This process includes correcting misspellings and truncations, extraction of data via parsing, and correcting inconsistencies in extracted data. Prolog programming ooers natural advantages for standardizing: dee-nite clause grammars can be used to parse data; Prolog r...
متن کاملPreference Logic Programming
Preference logic programming (PLP) is an extension of constraint logic programming (CLP) for declaratively specifying problems requiring optimization or comparison and selection among alternative solutions to a query. In the PLP framework, the deenite clauses of a constraint logic program are augmented by two new kinds of clauses, which we call optimization clauses and arbiter clauses. Optimiza...
متن کاملUsing Tabled Logic Programming and Preference Logic for Data Standardization
We deene standardization as the process of extracting useful information from poorly structured textual data. This process includes correcting misspellings and trun-cations, extraction of data via parsing, and correcting inconsistencies in extracted data. Prolog programming ooers natural advantages for standardizing: deenite clause grammars can be used to parse data; Prolog rules can be used to...
متن کاملLogic grammars and XML Schema
This document describes some possible applications of logic grammars to schema processing as described in the XML Schema specification. The term logic grammar is used to denote grammars written in logic-programming systems; the best known logic grammars are probably definite-clause grammars (DCGs), which are a built-in part of most Prolog systems. This paper works with definite-clause translati...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Comput. Lang.
دوره 24 شماره
صفحات -
تاریخ انتشار 1998